<template>
    <div class="Login">
      <div>登录页面</div>
      <input type="text" v-model="username"> <input type="password" v-model="password"> <button @click="login">登录</button>
    </div>
  </template>
  
  <script>
  export default {
    name: 'LoginPage',
    data(){
        return{
            username:'',
            password:''
        }
    },
    methods:{
      login(){
        if(this.username=='admin'&&this.password=="123456"){
          this.$router.push('/manager')
        }
      }
    }
  }
  </script>
  
  <!-- Add "scoped" attribute to limit CSS to this component only -->
  <style scoped>
  
  </style>
  